package com.song.fx;

import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;

import java.util.ResourceBundle;

/**
 * Hello world!
 */
public class App extends Application {

    public static void main(String[] args) {
        launch(args);
    }

    @Override
    public void start(Stage primaryStage) throws Exception{
        primaryStage.setTitle("FXMLExample");
        Parent root = FXMLLoader.load(ClassLoader.getSystemResource("fxmls/fxml_example.fxml"),
                ResourceBundle.getBundle("properties.fx"));
        Scene scene = new Scene(root, 226,264);
        primaryStage.setScene(scene);
        primaryStage.show();
    }
}

